<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
			<rich:panelMenu itemMode="ajax" groupMode="ajax"
				groupExpandedLeftIcon="triangleUp"
				groupCollapsedLeftIcon="triangleDown"
				topGroupExpandedRightIcon="chevronUp"
				topGroupCollapsedRightIcon="chevronDown" itemLeftIcon="disc"  expandSingle="false" width="190px" >
				<rich:panelMenuGroup label="Mein Konto" expanded="#{MainSessionBean.choiceaccountManagement}" action="#{MainSessionBean.toogleAccountManagement()}">
					<rich:panelMenuItem label="Konto verwalten" name="Konto_verwalten_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeAccountManagement()}" execute="leftmenueform"/>
				</rich:panelMenuGroup>
				<rich:panelMenuGroup label="Fragenpool" expanded="#{MainSessionBean.choiceQuestions}" action="#{MainSessionBean.toogleQuestions()}">
					<rich:panelMenuItem label="Frage hinzufügen" name="Frage_hinzufügen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeAddQuestion()}" execute="leftmenueform"/>
					<rich:panelMenuItem label="Frage suchen" name="Frage_suchen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeQuestionView()}" execute="leftmenueform"/>
				</rich:panelMenuGroup>
				<rich:panelMenuGroup label="Fragebögen" expanded="#{MainSessionBean.choiceQuestionSheets}" action="#{MainSessionBean.toogleQuestionSheets()}">
					<rich:panelMenuItem label="Fragebogen hinzufügen" name="Fragebogen_hinzufügen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeAddQuestionSheetView()}" execute="leftmenueform"/>
					<rich:panelMenuItem label="Fragebogen suchen" name="Fragebogen_suchen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeChangeQuestionSheet()}" execute="leftmenueform"/>
				</rich:panelMenuGroup>
				<rich:panelMenuGroup label="Teilnehmerverwaltung" expanded="#{MainSessionBean.choiceParticipants}" action="#{MainSessionBean.toogleParticipants()}">
					<rich:panelMenuItem label="Teilnehmer hinzufügen" name="Benutzer_hinzufügen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeAddParticipantView()}" execute="leftmenueform"/>
					<rich:panelMenuItem label="Teilnehmer suchen" name="Benutzer_suchen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeChangeParticipant()}" execute="leftmenueform"/>
				</rich:panelMenuGroup>
				<rich:panelMenuGroup label="Umfragen" expanded="#{MainSessionBean.choiceSurveys}" action="#{MainSessionBean.toogleSurvey()}">
					<rich:panelMenuItem label="Umfrage Überblick" name="Umfrage_ueberischt_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeSurveyOverview()}"  execute="leftmenueform"/>
					<rich:panelMenuItem label="Umfrage hinzufügen" name="Umfrage_hinzufügen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeAddSurveyView()}"  execute="leftmenueform"/>
					<rich:panelMenuItem label="Umfrage suchen" name="Umfrage_suchen_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeChangeSurvey()}" execute="leftmenueform"/>
				</rich:panelMenuGroup>
				<rich:panelMenuGroup label="Antworten" expanded="#{MainSessionBean.choiceAnswers}" action="#{MainSessionBean.toogleAnswers()}">
					<rich:panelMenuItem label="Antworten verwalten" name="Konto_verwalten_item" onbegin="#{rich:component('Loadingpopup')}.show();" oncomplete="#{rich:component('Loadingpopup')}.hide();" action="#{MainSessionBean.activeAnswerView()}" execute="leftmenueform"/>
				</rich:panelMenuGroup>
			</rich:panelMenu>
</ui:composition>
